﻿using System.Runtime.InteropServices;
using System.Text;

namespace HuaCheng.CommonClass
{
    public class ReadAndWriteIni
    {
        [DllImport("kernel32")]
        public static extern int GetPrivateProfileString(string section, string key, string defVal, StringBuilder retVal, int size, string filePath);
        [DllImport("kernel32")]
        public static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
    }
}
